#ifndef CUSTOMREACTIONPLATE_H
#define CUSTOMREACTIONPLATE_H

#include <QTableWidget>
#include <QObject>
#include <QWidget>
#include <QDebug>
#include <QEvent>
#include <QMouseEvent>
#include <QCoreApplication>
#include <QTime>

#include "Constant.h"

class CustomReactionPlate : public QTableWidget
{
    Q_OBJECT

signals:
    void repMouseRelease(); // 反应板鼠标释放事件

public:
    explicit CustomReactionPlate(QWidget *parent = nullptr);
    ~CustomReactionPlate();

protected:
    void mouseReleaseEvent(QMouseEvent *event); // 鼠标释放事件
    void mouseDoubleClickEvent(QMouseEvent *event); // 鼠标双击事件

private:
    bool isDbClick; // 是否为双击事件

private:
    void sleep(int msec); // 休眠函数

};

#endif // CUSTOMREACTIONPLATE_H
